/*
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-04-28 13:34:00
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-05-08 15:25:13
 * @FilePath: /XMate-h5/src/services/msgCenter/type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

// 消息列表查询参数
export interface MsgPageParams {
  page: number;
  size: number;
  status: number;
  startTime: string;
  endTime: string;
  keyword: string;
}

// 消息列表响应
export interface MsgListItemModel {
  lastMsgTime: string;
  confId: string;
  subject: string;
  confHostUserId: string;
  confHostUserName: string;
  customerName: string;
  confCreatedTime: string;
  unreadMsgCount: number;
  totalCount: number;
  confStatus: number; // 0: 进行中 1: 已完成
  data: string;
}

// 消息内容
export interface MsgModel {
  id: string;
  content: string;
  createdTime: string;
}

// 消息详情
export interface MsgDetailResponse {
  confId: string;
  subject: string;
  confHostUserId: string;
  confHostUserName: string;
  customerName: string;
  customerId: number;
  confCreatedTime: string;
  msgList: MsgModel[];
  data: string;
  disableRealTimePush: number; // 1: 不接收 0: 接收
  confStatus: number; // 0: 进行中 1: 已完成
}
